<style>
    .box {
        display: flex;
        justify-content: center;
        ;
    }
</style>
<div class="hd-mobile-content">
    <div class="navbar-fixed">
        <div class="main-nav text_">
            <div class="navbar-wrap">
                <div class="m-topMenu">
                    <div class="slider-wrap">
                        <div class="m-navItems box">
                            <div class="item-cell selected" style="text-align:center;margin-left:10%;">
                                <a id="myPage" href="#">我的帖子</a>
                            </div>
                            <div class="item-cell" style="text-align:center;margin-left:15%; ">
                                <a id="myCom" href="">我的评论</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <script type="text/javascript">
                $('#myCom').click(function() {
                    var id = getCookie('number')
                    var url = '/meetTWO/public/index.php/index/mine/commend?id=' + id
                    location.href = url
                    return false
                })

                $('#myPage').click(function() {
                    var url = '/meetTwo/public/index/Mine/myPage';
                    var id = getCookie('number')
                    window.location.href = url + '?id=' + id
                    return false;
                })

                $(document).ready(function() {
                    $(".category-menu").on('click', function() {
                        $(this).hasClass("expanded") ? $(this).removeClass("expanded") : $(this).addClass("expanded")
                    })

                    var d = $(".m-navItems"),
                        u = d.find("div.selected");
                    u.index() > 3 ? d.parent()[0].scrollLeft = u[0].offsetLeft - u.width() / 2 : "";
                });

                function getCookie(name) {
                    var strcookie = document.cookie; //获取cookie字符串
                    var arrcookie = strcookie.split("; "); //分割
                    //遍历匹配
                    for (var i = 0; i < arrcookie.length; i++) {
                        var arr = arrcookie[i].split("=");
                        if (arr[0] == name) {
                            return arr[1];
                        }
                    }
                    return "";
                }
            </script>
            <div class="view" id="fm">